package main

import "fmt"

type test1 struct {
	name string
}

type test2 struct {
	test1
	age int
}

//多重继承 test3同时继承test1和test2两个结构体
type test3 struct {
	test2
	id int
}

func main()  {
	var a test3

	a.name="foo"
	a.age=19
	a.id=20

	fmt.Println(a)
}
